home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
magic_balls.swf
/
scripts
/
frame_292
/
DoAction.as
Wrap
Text File
|
2010-11-09
|
744b
|
18 lines
_root.removelist = 0;
nextnextballcolor = random(5) + 1;
newball = _root.totalballs + 1;
ballcolor = nextballcolor;
ballcolornext = nextnextballcolor;
set("ball" add newball add "color",ballcolor);
duplicateMovieClip("originalball" add ballcolor,"ball" add newball,16384 + newball);
setProperty("ball" add _root.newball, _X, _root.startposition);
setProperty("ball" add _root.newball, _Y, 380);
duplicateMovieClip("originalball" add nextnextballcolor,"nextball",16384 + (newball + 1));
setProperty(nextball, _X, _root.startposition);
setProperty(nextball, _Y, 405);
duplicateMovieClip("arroworg","arrow",16583);
setProperty(arrow, _X, _root.startposition);
setProperty(arrow, _Y, 405);
_root.totalballs += 1;
_root.balls += 1;